﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Documents;
using System.Windows;
using System.Windows.Media;

namespace ThreeByte.ActiveDeck.AddIn.Content.Controls
{
    public class LinkAdorner : Adorner
    {

        public LinkAdorner(UIElement adornedElement)
            : base(adornedElement) {


            //Also add something to bind to?


        }

        public bool Enabled { get; set; }

        protected override void OnRender(DrawingContext drawingContext) {

            if(!Enabled) {
                return;
            }
            Rect adornedElementRect = new Rect(this.AdornedElement.DesiredSize);
            
            SolidColorBrush renderBrush = new SolidColorBrush(Colors.Yellow);
            Pen renderPen = new Pen(new SolidColorBrush(Colors.Pink), 2);
            double renderRadius = 10.0;

            //Draw a Symbol
            drawingContext.DrawEllipse(renderBrush, renderPen, adornedElementRect.TopRight, renderRadius, renderRadius);
            
            //base.OnRender(drawingContext);
        }


    }
}
